<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <link rel="stylesheet" href="../static/layui/css/layui.css">
</head>
<body>

<div id="layer-photos-demo" class="layer-photos-demo" style="padding: 10px;">
    <img th:src="${qrCode}" id="tt"
         width="430px" height="430px" style="margin: 3px; border: black 2px"  ; th:alt="${notice}" />

</div>


<script src="../static/layui/layui.js"></script>
<script src="https://cdn.bootcss.com/jquery/1.10.1/jquery.min.js"></script>
<script>
    var layer;
    layui.use(['element', 'jquery', 'form', 'layer'], function() {
        layer = layui.layer;
        layer.photos({
            photos: '#layer-photos-demo'
            , anim: 0 //0-6的选择，指定弹出图片动画类型，默认随机（请注意，3.0之前的版本用shift参数）
        });

        $('#tt').trigger("click");

    });



</script>
</body>
</html>